package com.xuecheng.content.service;

import com.xuecheng.content.model.dto.CoursePreviewDto;
import com.xuecheng.content.model.po.CoursePublish;
import freemarker.template.TemplateException;

import java.io.File;
import java.io.FileNotFoundException;
import java.io.IOException;

/**
 * @author 陈竞超
 * @version 1.0
 * @qq 2250537249
 */
public interface CoursePublishService {
    public CoursePreviewDto getCoursePreviewInfo(Long courseId);
    public void commitAudit(Long companyId,Long courseId);
    public void publish(Long companyId,Long courseId);
    public File generateCourseHtml(Long courseId) throws IOException, TemplateException;
    public void  uploadCourseHtml(Long courseId,File file);
    public CoursePublish getCoursePublish(Long courseId);
    public CoursePublish getCoursePublishCache(Long courseId);
}
